home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9810 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: symiserver2.symantec.com!usenet
  2. From: Walter Bright <wbright@symantec.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: BC++ 4.52 Intel Floating Point Format
  5. Date: Sun, 03 Mar 1996 16:58:17 -0800
  6. Organization: Symantec Development Tools Business Unit
  7. Message-ID: <313A4029.20D8@symantec.com>
  8. References: <31363716.17D8@lexicon.net.au>
  9. NNTP-Posting-Host: 155.64.77.55
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Lucas Giezen wrote:
  16. > Does anyone have the format of the bits in the internal representation
  17. > for the PC? (We already have the mainframe format). Also the
  18. > representations of 0 and other oddities would be appreciated.
  19.  
  20. float: 32 bits -> 1 sign bit, 7 exponent bits, 24 significand bits
  21. double: 64 bits -> 1 sign bit, 10 exponent bits, 53 significand bits
  22. long double: 80 bits -> 1 sign bit, 15 exponent bits, 64 significand bits
  23.  
  24. float and double each have an implied 'hidden' bit.
  25.  
  26. 0: sign is 1 or 0, exponent and significand are all zeros.
  27.